package com.github.xiaoymin.map.response.baidu;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="GeocoderSearchResponse")
@XmlAccessorType(XmlAccessType.FIELD)
public class BaiduGenCoderResponse {

    @XmlElement(name = "status")
    private String status;

    @XmlElement(name = "result")
    private GenCoderResult result;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public GenCoderResult getResult() {
        return result;
    }

    public void setResult(GenCoderResult result) {
        this.result = result;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BaiduGenCoderResponse{");
        sb.append("status='").append(status).append('\'');
        sb.append(", result=").append(result);
        sb.append('}');
        return sb.toString();
    }
}
